import { http } from "@/utils/http";
// 获取商品详情接口
export function getDetail(id) {
  return http({
    url: "/goods",
    params: {
      id,
    },
  });
}
// 获取商品热榜接口
export function getGoodsHot({ id, type, limit = 3 }) {
  return http({
    url: "/goods/hot",
    params: {
      id,
      type,
      limit,
    },
  });
}
